﻿namespace FFF.Test.Application.PublicService.AppService.Wx.Pay.Dto
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// 下单输入dto
    /// </summary>
    public class TenPayV3OrderInDto
    {
        /// <summary>
        /// 产品
        /// </summary>
        public ProductDto ProductDto { get; set; }

        /// <summary>
        /// 商户的ID
        /// </summary>
        public string StoreId { get; set; }

        /// <summary>
        /// 用户的openId
        /// </summary>
        public string OpenId { get; set; }
    }

    /// <summary>
    /// 下单输出的Dto
    /// </summary>
    public class TenPayV3OrderOutDto
    {
        /// <summary>
        /// APPID集合
        /// </summary>
        public string AppID { get; set; }

        /// <summary>
        /// 时间戳
        /// </summary>
        public string TimeStamp { get; set; }

        /// <summary>
        /// 随机串
        /// </summary>
        public string NonceStr { get; set; }

        /// <summary>
        /// 扩展包
        /// </summary>
        public string Package { get; set; }

        /// <summary>
        /// 微信签名
        /// </summary>
        public string PaySign { get; set; }

        /// <summary>
        /// 微信订单号
        /// </summary>
        public string OutTradNo { get; set; }
    }

    /// <summary>
    /// 产品的dto用户做微信支付
    /// </summary>
    public class ProductDto
    {
        /// <summary>
        /// 产品的Id
        /// </summary>
        public string ProductId { get; set; }

        /// <summary>
        /// 产品的名称
        /// </summary>
        public string ProductName { get; set; }

    }

    /// <summary>
    /// 支付失败dto
    /// </summary>
    public class OrderFailDto
    {
        /// <summary>
        /// 微信订单号
        /// </summary>
        public string OutTradNo { get; set; }
    }

    /// <summary>
    /// 退款接口
    /// </summary>
    public class RefundDto
    {
        /// <summary>
        /// 微信订单号
        /// </summary>
        public string OutTradNo { get; set; }
    }

    /// <summary>
    /// 订单查询输入dto
    /// </summary>
    public class OrderQueryInDto
    {
        /// <summary>
        /// 微信订单号
        /// </summary>
        public string OutTradNo { get; set; }
    }

    /// <summary>
    /// 订单查询输出dto
    /// </summary>
    public class OrderQueryOutDto
    {
        /// <summary>
        /// 是否购买成功
        /// </summary>
        public byte IsBuySuccess { get; set; }
    }
}
